package com.schedule.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.schedule.dao.UserMapper;
import com.schedule.entity.User;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
	public void AddUser(User user) {
		userMapper.AddUser(user);
	}

	public User FindPerson(String user) {
		
		return userMapper.FindPerson(user);
	}

	public void UpdatePerson(User user) {
		userMapper.UpdatePerson(user);

	}

	public List<User> FindAll() {
		
		return userMapper.FindAll();
	}

	public void UpdateRemember(User user) {
		userMapper.UpdateRemember(user);
		
	}

	public User FindByPhone(String phone, String user) {
		
		return userMapper.FindByPhone(phone, user);
	}

	public List<User> FindByname(String name, String user) {
		
		return userMapper.FindByname(name, user);
	}

	public User AddByPhone(String phone) {
		
		return userMapper.AddByPhone(phone);
	}

	public void UpdateAndUpload(User user) {
		// TODO Auto-generated method stub
		userMapper.UpdateAndUpload(user);
	}

}
